
using System;
using MagicApp.Data;
using MagicApp.Data.Creature;
using MagicApp.Data.Enums;
using System.Collections.Generic;

namespace MagicApp.Testing
{
	/// <summary>
	/// Description of DummyCardRepository.
	/// </summary>
	public class DummyCardRepository : MagicApp.Data.ICardRepository
	{
		public DummyCardRepository()
		{
		}
		
		public IList<Card> GetCards()
		{
			System.Collections.Generic.IList<Card> cards = 
				new System.Collections.Generic.List<Card>();
			for(int i=0;i<10;i++)
			{
				
				Card creature = new Creature(i,"Card#"+i.ToString(),"Blah",Series.IceAge, 
                    CardType.Creature,CardColor.Green, CardRarity.Rare,
                    new Image("",ImageSize.Thumbnail,"",CardEdition.Unlimited,"monkey"), CreatureType.Djinn, false, false, 0, 1);
			    creature.DeckName = "sammys".ToLower();
                cards.Add(creature);
			}
			return cards;
		}
		public bool SaveDeck(Deck deck)
		{
			return true;
		}
		
		public System.Collections.Generic.IList<Card> RetrieveDeck()
		{
			IList<Card> deck = new List<Card>();
            for (int i = 0; i <= 50; i++)
                if (i == 50 )
                    deck.Add(new Creature(5, "monkey", "d", Series.UrzasSaga, CardType.Sorcery, CardColor.White,
                                          CardRarity.Uncommon,
                                          new Image("m", ImageSize.Thumbnail, "d", CardEdition.Unlimited, "d"),
                                          CreatureType.Djinn,
                                          true, false, 5, 5));
            
                else
                    deck.Add(new Creature());
			return deck;
		}
		
		public System.Collections.Generic.IList<Card> RetrieveDeck(string deckName)
		{
			throw new NotImplementedException();
		}
		
		public bool UpdateDeck(Deck deck)
		{
			throw new NotImplementedException();
		}
	}
}
